errors=[
	EvalError,
	RangeError,
	SyntaxError,
	TypeError,
	URIError,
	ReferenceError,
	Error
]

try{
	document.wite();
}catch(error){
	var check=confirm(error);
	if(!check){
		let option=Math.floor(Math.random()*6);
		let reply=errors[option];
		throw new reply('Self-defined error!');
	}
}finally{
	console.log(`checked ${check}`);
}
